<div class="main-content">
    <!-- 内容头部 -->
    <div class="breadcrumbs" id="breadcrumbs" style="margin-left: 20px;">
        <ul class="breadcrumb">
            <li>
                <i class="ace-icon fa fa-user"></i>
                <a href="<?= url('Index/index') ?>">小区管理</a>
            </li>
            <li class="active">房间管理</li>
        </ul>
    </div>
    <!-- 内容头部 -->
    <div class="page-content">
        <div class="page-content-area">
            <style>
                .ace-file-input a {display:none;}
            </style>
            <div class="row">
                <div class="col-xs-12">
                    <form class="form-horizontal" method="post" onsubmit="return check_submit()" action="/index.php/village/datacenter.house/houselist?g=House&amp;c=Unit&amp;a=import_village_edit&amp;id=258&amp;page=1">
                        <div class="tab-content">
                            <div id="basicinfo" class="tab-pane active">
                                <div class="form-group">
                                    <label class="col-sm-1"><label for="usernum">物业编号</label></label>
                                    <input class="col-sm-2" size="20" name="usernum" id="usernum" type="text" value="1-2-3698" readonly="readonly">
                                </div>


                                <div class="form-group">
                                    <label class="col-sm-1"><label for="floor_name">单元名称</label></label>
                                    <input class="col-sm-2" size="20" name="floor_name" id="floor_name" type="text" value="一单元" readonly="readonly">
                                </div>

                                <div class="form-group">
                                    <label class="col-sm-1"><label for="floor_layer">单元楼号</label></label>
                                    <input class="col-sm-2" size="20" name="floor_layer" id="floor_layer" type="text" value="1号楼" readonly="readonly">
                                </div>

                                <div class="form-group">
                                    <label class="col-sm-1"><label for="layer">层号</label></label>
                                    <input class="col-sm-2" size="20" name="layer" id="layer" type="text" value="1" readonly="readonly">
                                </div>

                                <div class="form-group">
                                    <label class="col-sm-1"><label for="room">房间号</label></label>
                                    <input class="col-sm-2" size="20" name="room" id="room" type="text" value="101" readonly="readonly">
                                </div>

                                <div class="form-group">
                                    <label class="col-sm-1"><label for="housesize">房屋面积</label></label>
                                    <input class="col-sm-2" size="20" name="housesize" id="housesize" type="text" value="100.26">
                                </div>
                                <div class="form-group">
                                    <label class="col-sm-1"><label for="layer_room">房屋类型：</label></label>
                                    <select class="col-sm-2" name="house_type" id="house_type">
                                        <option selected="" value="1">住宅</option>
                                        <option value="2">商铺</option>
                                        <option value="3">办公</option>
                                    </select>
                                </div>
                                <div class="form-group">
                                    <label class="col-sm-1"><label for="layer_room">使用状态：</label></label>
                                    <select class="col-sm-2" name="user_status" id="user_status">
                                        <option selected="" value="1">业主入住</option>
                                        <option value="2">未入住</option>
                                        <option value="3">租客入住</option>
                                    </select>
                                </div>
                                <div class="form-group">
                                    <label class="col-sm-1"><label for="layer_room">出售状态：</label></label>
                                    <select class="col-sm-2" name="sell_status" id="sell_status">
                                        <option selected="" value="1">正常居住</option>
                                        <option value="2">出售中</option>
                                        <option value="3">出租中</option>
                                    </select>
                                </div>
                                <div class="form-group">
                                    <label class="col-sm-1"><label for="layer">排序</label></label>
                                    <input class="col-sm-2" size="20" name="sort" id="sort" type="number" value="1000">
                                    &nbsp;&nbsp;&nbsp;&nbsp;<span class="line-span ">数字越大越靠前</span>
                                </div>

                            </div>


                            <div class="form-group">
                                <label class="col-sm-1">状态</label>

                                <label style="padding-left:0px;padding-right:20px;"><input type="radio" checked="checked" class="ace" value="1" name="status"><span style="z-index: 1" class="lbl">开启</span></label>
                                <label style="padding-left:0px;"><input type="radio" class="ace" value="0" name="status"><span style="z-index: 1" class="lbl">关闭</span></label>
                            </div>
                        </div>
                        <div class="space"></div>
                        <div class="clearfix form-actions">
                            <div class="col-md-offset-3 col-md-9">
                                <button class="btn btn-info" type="submit">
                                    <i class="ace-icon fa fa-check bigger-110"></i>
                                    保存
                                </button>
                            </div>
                        </div>
                    </form></div>

            </div>
        </div>
    </div>
</div>
<script type="text/javascript">
    function check_submit(){
        if($('#floor_name').val() == ''){
            alert('单元名称不能为空！');
            return false;
        }

        if($('#floor_layer').val() == ''){
            alert('单元楼号不能为空！');
            return false;
        }

        if(parseFloat($('#housesize').val()) <= 0 ){
            alert('房屋面积不能为空！');
            return false;
        }


        /* 	if($('select[name="property_month_num"]').val() == 0){
                if($('#property_month_num').val() == ''){
                    alert('请填写物业缴费周期');
                    return false;
                }
            }


            if($('select[name="presented_property_month_num"]').val() == 0){
                if($('#presented_property_month_num').val() == ''){
                    alert('请填写赠送物业时间');
                    return false;
                }
            } */
    }

    $('select').change(function(){
        if($(this).val() == 0){
            $(this).next('label').show();
        }else{
            $(this).next('label').hide();
        }
    });
</script>

<div id="orderAlert" style="position: fixed; z-index: 999999; bottom: 5px; right: 5px; background: #e5e5e5; display: none;">
    <div style="text-align: center; margin-top: 10px; font-size: 20px; color: red;">
        <b>新订单来啦!</b> <a class="oaright" href="javascript:closeoa()">[关闭]</a>
    </div>
    <div style="margin: 20px 30px 5px 30px; cursor: pointer;" onclick="tourl()">
        您好：有<span class="label label-info" id="oanum"></span>笔新订单来了！
    </div>
    <div style="margin: 5px 30px 5px 30px; cursor: pointer;" onclick="tourl()">
        截止目前，一共有<span class="label label-info" id="oatnum"></span>笔订单未处理
    </div>
    <div class="oaright" style="bottom: 10px; margin: 5px 30px 5px 30px;">
        时间：<a id="oatime" style="text-decoration: none;"></a>
    </div>
</div>
<div style="position: fixed; top: -9999px; right: -9999px; display: none;" id="soundsw"></div>
<a href="/index.php/village/datacenter.house/houselist?g=House&amp;c=Unit&amp;a=import_village_edit&amp;id=258&amp;page=1#" id="btn-scroll-up" class="btn-scroll-up btn btn-sm btn-inverse">
    <i class="ace-icon fa fa-angle-double-up icon-only bigger-110"></i>
</a>
</div>
<script>
    function newalert(title){
        bootbox.dialog({
            message: title,
            buttons: {
                "success" : {
                    "label" : "确认",
                    "className" : "btn-sm btn-primary"
                }
            }
        });
    }

    function alertshow(content){
        $('#popalertwindowcontent').html(content);
        $('#popalertwindow').show();
    }
</script>

<div style="position: fixed; width: 100%; height: 100%; top: 0px; left: 0px; display: none;" id="popalertwindow">
    <div style="width: 100%; height: 100%; background: #eeeeee; filter: alpha(opacity = 50); -moz-opacity: 0.5; -khtml-opacity: 0.5; opacity: 0.5; position: absolute; z-index: 9999;"></div>
    <div style="position: relative; width: 500px; height: 200px; margin: 200px auto; filter: alpha(opacity = 100); -moz-opacity: 1; -khtml-opacity: 1; opacity: 1; z-index: 10000; background: #ffffff; -webkit-border-radius: 8px; -moz-border-radius: 8px; border-radius: 8px; -webkit-box-shadow: #666 0px 0px 10px; -moz-box-shadow: #666 0px 0px 10px; box-shadow: #666 0px 0px 10px;">
        <div style="height: 40px;"></div>
        <div style="width: 400px; height: 90px; margin: 0px auto; color: #999999; text-align: center; font-size: 20px;">
            <table style="width: 400px; height: 90px;">
                <tbody>
                <tr>
                    <td id="popalertwindowcontent"></td>
                </tr>
                </tbody>
            </table>
        </div>
        <div style="height: 20px;"></div>
        <div style="width: 80px; height: 40px; background: #eeeeee; margin: 0 auto; line-height: 40px; text-align: center; font-size: 20px; border: 1px solid #999999; cursor: pointer;" onclick="$(&#39;#popalertwindow&#39;).hide();">确认</div>
    </div>
</div>